<table width="100%" cellspacing="0" cellpadding="0" class="post_table" style="border:1px solid #D8D8D8;">
	<tr class="table_title">
		<th class="txt_center" style="width:36px;">No</th>
		<th class="txt_center" style="width:36x;">
			<input type="checkbox" name="check_all" id="check_all" onclick="return check_all(<?=count($result)?>)"/>
		</th>
		<th class="txt_left" style="width:119px;">Username</th>
		<th class="txt_left" style="width:199px;">Email</th>
		<th class="txt_left" style="width:255px;">Content</th>
		<th class="txt_left" style="width:131px;">Created Time</th>
		<th class="txt_center" style="width:60px;">Status</th>
		<th style="width:92px;">Action</th>
	</tr>
	<form action="<?=base_url().'index.php/admin/'.$module.'/del_all/'?>" method="POST" name="del_all_item" id="del_all_item">
	<?php
		if(!empty($result))
		{
		$i = 0;
		foreach($result as $rs){ 
	?>
	<tr class="table_tr">
		<td class="table_td txt_center"><?=$i+1?></td>
		<td class="table_td txt_center">
			<input type="checkbox" name="check_item[]" id="check_item_<?=$i?>" value="<?=$rs['id']?>" onclick="check_item(<?=$i?>)"/>
		</td>
		<td class="table_td txt_left"><?=$rs['username']?></td>
		<td class="table_td txt_left"><?=$rs['email']?></td>
		<td class="table_td txt_left"><?=$rs['content']?></td>
		<td class="table_td txt_left"><?=$rs['created_time']?></td>
		<td class="table_td txt_center" id="ajax_status_<?=$rs['id']?>">
			<img src="<?php if($rs['status'] == 1){ echo base_url().'static/images/checkmark.png'; }else{ echo '';}?>" alt="" onclick="return change_status(<?=$rs['id']?>,<?=$rs['status']?>)"/>
		</td>
		<td class="table_td txt_center">
			<div class="content_button_detail_action left" style="margin-right:0px;"  onclick="location.href='<?=base_url().'index.php/admin/'.$module.'/del/'.$rs['id']?>'">Del</div>
			<div class="clearall"></div>
		</td>
	</tr>
	<?php 
		$i++;
		}
	}else{
	?>
	<tr>
		<td colspan="9"> No-Data</td>
	</tr>
	<?php	
	}
	?>
	</form>
</table>